#include "dominion.h"  
#include "dominion_helpers.h"  
#include "rngs.h"  
#include <stdio.h>  
#include <math.h>  
#include <stdlib.h>  
#include <assert.h>


void testIsGameOver()  {
  int i, r;
  struct gameState g;
  
  g.supplyCount[province] = 0;
  r = isGameOver(&g);
  assert(r == 1);

  g.supplyCount[province] = 1;
  g.supplyCount[2] = 0;
  g.supplyCount[12] = 0;
  g.supplyCount[23] = 0;
  r = isGameOver(&g);
  assert(r == 1);

  for(i=0; i<25; i++){
    g.supplyCount[i] = 1;
  }

  r = isGameOver(&g);
  assert(r == 0);


  printf("All tests successful!\n");
}


int main(int argc, char *argv[]) {
  
  testIsGameOver();
  return 0;
}